﻿using System.Collections.Generic;
using sdm.exam.domain.DataContext;

namespace sdm.exam.domain.Manager
{
    public class ExamManager
    {
        readonly sdm.exam.domain.DataContext.ExamDomain _domain = new ExamDomain();
        /// <summary>
        /// Gets a list of exams by specific education.
        /// </summary>
        /// <param name="education">The education to lookup exams for.</param>
        /// <returns>The list containin all exam for the specific education.</returns>
        public List<sdm.exam.domain.Entities.Exam> GetExamsListByEducation(sdm.exam.domain.Entities.Education education)
        {
            return _domain.GetExamsListByEducation(education);
        }

        /// <summary>
        /// Add an exam to the database.
        /// </summary>
        /// <param name="exam"></param>
        public void AddExam(Entities.Exam exam)
        {
            _domain.AddExam(exam);
        }

        /// <summary>
        /// Gets a list of all exams.
        /// </summary>
        /// <returns>The list of all exams.</returns>
        public List<Entities.Exam> GetListOfExams()
        {
            return _domain.GetListOfExams();
        }
    }
}
